package com.langfeiyes.pattern.prototype;

public class Dept implements Cloneable{
    private String name;
    public Dept(String name) {
        this.name = name;
    }
    public String getName() {
        return name;
    }
    public void setName(String name) {
        this.name = name;
    }
    @Override
    public String toString() {
        return "Dept{name='" + name +"', hashcode="+this.hashCode()+"}";
    }

    @Override
    protected Object clone() throws CloneNotSupportedException {
        return super.clone();
    }
}
